<html>
<head>
    <title>Websocket Test</title>
    <script src="/jquery.min.js"></script>
    <script src="/jquery-websocket.js"></script>
    <script>
        function start() {
            sock = $.websocket(
                    'ws://localhost:3000/sock', {
                        events: {
                            lol: function(wat) {
                                alert(wat.data.data);
                            }
                        },
                        open: function(message) {
                            console.log('Connected!');
                        }
                    });
        }
        function send(message) {
            sock.send('lol', {data: message})
        }
    </script>
</head>
<body>
Open Javascript console (Ctrl+Shift+C). Go to 'Console tab'.
<br />
To connect to the web socket, type <code>start()</code>. To Send data, type <code>send('Message')</code>
</body>
</html>